package com.borqsprocessmanager.db;

import android.net.Uri;

public class DBProvider {

	public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.jacp.demo";
	public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.jacp.demo";

	public static final String DB_NAME = "process_samples.db";

	public static final class SamplesTable implements BaseColumns {

		public static final String TABLE_NAME = "samples";
		public static final String AUTHORITY = "com.borqsprocessmanager.sample";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String DEFAULT_SORT_ORDER = "_id desc";
		public static final String START_TIME = "start_time";
		public static final String END_TIME = "end_time";
		public static final String START_LEVEL = "start_level";
		public static final String END_LEVEL = "end_level";
	}

	public static class ProcessTable implements BaseColumns {

		public static final String TABLE_NAME = "process_samples";
		public static final String AUTHORITY = "com.borqsprocessmanager.process";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String DEFAULT_SORT_ORDER = "_id desc";

		public static final String SAMPLE_ID = "sample_id";
		public static final String IS_SYSTEM = "is_system";
		public static final String TYPE = "type";
		public static final String UID = "uid";
		public static final String PID = "pid";
		public static final String PKG_NAME = "pkg_name";
		public static final String PROCESS_NAME = "process_name";
		public static final String APPNAME_NAME = "appName_name";
		public static final String RATIO = "ratio";
		public static final String RX_BYTES = "rx_bytes";
		public static final String TX_BYTES = "tx_bytes";
		public static final String TOTAL_BYTES = "total_bytes";
	}

	public static class WhiteListTable implements BaseColumns {
		public static final String TABLE_NAME = "white_table";
		public static final String AUTHORITY = "com.borqsprocessmanager.process";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String DEFAULT_SORT_ORDER = "_id desc";

		public static final String SAMPLE_ID = "sample_id";
		public static final String IS_SYSTEM = "is_system";
		public static final String TYPE = "type";
		public static final String UID = "uid";
		public static final String PID = "pid";
		public static final String PKG_NAME = "pkg_name";
		public static final String PROCESS_NAME = "process_name";
		public static final String APP_NAME = "appName_name";
		public static final String RATIO = "ratio";
		public static final String RX_BYTES = "rx_bytes";
		public static final String TX_BYTES = "tx_bytes";
		public static final String TOTAL_BYTES = "total_bytes";
	}

	public static class ActionTable implements BaseColumns {
		public static final String TABLE_NAME = "action_table";
		public static final String AUTHORITY = "com.borqsprocessmanager.action";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String DEFAULT_SORT_ORDER = "_id desc";

		public static final String APPNAME = "appName";
		public static final String PKG_NAME = "packageName";
		public static final String PROCESS_NAME = "precssName";
		public static final String ACATION_TYPE = "actionType";
	}

	public static class NetWorkTable implements BaseColumns {

		public static final String TABLE_NAME = "network_samples";
		public static final String AUTHORITY = "com.borqsprocessmanager.process";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String DEFAULT_SORT_ORDER = "_id desc";

		public static final String SAMLPE_ID = "samlpe_id";
		public static final String PKG_NAME = "pkg_name";
		public static final String UID = "uid";
		public static final String ICON = "icon";
		public static final String RX_BYTES = "rx_bytes";
		public static final String TX_BYTES = "tx_bytes";
		public static final String TOTAL_BYTES = "total_bytes";
		public static final String APPNAME_NAME = "appName_name";
	}

	public static class WakeLockSamplesTable implements BaseColumns {

		public static final String TABLE_NAME = "wakelock_samples";
		public static final String AUTHORITY = "com.borqsprocessmanager.process";
		public static final Uri CONTENT_URI = Uri.parse("content://"
				+ AUTHORITY + "/" + TABLE_NAME);
		public static final String DEFAULT_SORT_ORDER = "_id desc";

		public static final String TAG = "tag";
		public static final String TIME_LENGTH = "time_length";
		public static final String SAMPLE_ID = "sample_id";
	}

	// public static class SamplesTable implements BaseColumns {
	//
	// public static final String TABLE_NAME = "developer_data";
	// public static final String AUTHORITY =
	// "com.borqsprocessmanager.developer";
	// public static final Uri CONTENT_URI = Uri.parse("content://"
	// + AUTHORITY + "/" + TABLE_NAME);
	// public static final String DEFAULT_SORT_ORDER = "_id asc";
	//
	// public static final String SAMPLE_ID = "sample_id";
	// public static final String OPERATION = "operation";
	// public static final String LAST_TIME = "last_time";
	// public static final String TIME = "time";
	// public static final String WIFI_SATE = "wifi_state";
	// public static final String GPS_SATE = "gps_state";
	// public static final String SYNC_SATE = "sync_state";
	// public static final String AIRPLANE_STATE = "airplane_state";
	// public static final String START_VELOCITY = "start_average_v";
	// public static final String IS_PROCESS = "is_process";
	// public static final String NET_WORK = "gprs_state";
	// }

}
